import Relay from "react-relay";
export default class GetProOthersDetailMutation extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { getProOthersDetail }`;
    }

    getVariables() { 
        return {
            argsInput: {
                pdId: this.props.pdId,
            }
        }
    }

    getFatQuery() {
        return Relay.QL`fragment on getProOthersDetailPayload{
            responseData {
                errorCode
                value
                totalResult
                id
                proOthersDetailModelList{
                    fileJSON
                            imgJSON
                            othersId
                            title
                            content
                            pdId
                }
            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
               fragment on getProOthersDetailPayload  {
                    responseData {
                        errorCode
                        value
                        totalResult
                        id
                        proOthersDetailModelList{
                            fileJSON
                            imgJSON
                            othersId
                            title
                            content
                            pdId
                        }
                    }
                 }
            `]
        }];
    }

}
